package com.ireadbooks.controller;

import com.ireadbooks.entity.OrderLog;
import com.ireadbooks.service.OrderLogService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (OrderLog)表控制层
 *
 * @author wut
 * @since 2020-04-04 18:06:56
 */
@RestController
@RequestMapping("orderLog")
public class OrderLogController {
    /**
     * 服务对象
     */
    @Resource
    private OrderLogService orderLogService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public OrderLog selectOne(Integer id) {
        return this.orderLogService.queryById(id);
    }

}